<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/common/includes.jsp" %>

<!DOCTYPE html>
<html>
<head>
	<title>zzzzzz - Forgot password</title>
	<%@ include file="/WEB-INF/common/meta.jsp" %>
	<%@ include file="/WEB-INF/common/global_res.jsp" %>
	<script type="text/javascript">
		$(function() {
			$("#email").focus();
			$('#fpForm').validate({
			    rules: {
		    	  email: {
			        required: true,
			        email: true
			      }
			    },
			    highlight: function(label) {
			    	$(label).closest('.control-group').addClass('error');
			    },
			    success: function(label) {
			    	label.text('OK!').addClass('valid').closest('.control-group').addClass('success');
			    }
			  });
		});
	</script>
</head>
<body>

<%@ include file="/WEB-INF/common/header.jsp" %>

<div class="container">
	<div class="row">
		<div class="span12 ">
			<h1>忘记密码?</h1>
			<p>请输入您登记的邮箱地址</p>
			
			<c:if test="${not empty message}">
				<div class="${message.type.cssClass}">${message.text}</div>
			</c:if>
			
			<form id="fpForm" action="${ctx}/account/resend_password" method="post" class="form-horizontal">
				<fieldset>
					<div class="control-group">
						<label for="email" class="control-label">Email</label>
						<div class="controls">
							<input type="text" id="email" name="email" class="input-large" placeholder="Email" />
						</div>
					</div>
					<div class="control-group">
					  <div class="controls">
					    <button type="submit" class="btn">Send reset instructions</button>
					  </div>
					</div>
				</fieldset>
			</form>
		</div>
	</div>
</div>

<%@ include file="/WEB-INF/common/footer.jsp" %>

</body>
</html>
